package com.example.tests;

public class ContactData implements Comparable <ContactData>{
	public String firstNameValue;
	private String lastNameParameter;
	private String adressValue;
	private String mobileValue;
	private String emailValue;
	private String dayOfBirthValue;
	private String mounthOfBirthValue;
	private String yearOfBirthValue;
	private String groupValue;
	private String secondaryAdressValue;
	private String myHomeValue;
	private String workValue;
	private String secondEmailValue;
	private String secondaryHomeValue;

			
	public ContactData(String firstName, String lastNameParameter,
			String adressValue, String mobileValue, String emailValue,
			String dayOfBirthValue, String mounthOfBirthValue,
			String yearOfBirthValue, String groupValue,
			String secondaryAdressValue, String myHomeValue, String workValue,
			String secondEmailValue, String secondaryHomeValue) {
		this.firstNameValue = firstName;
		this.lastNameParameter = lastNameParameter;
		this.adressValue = adressValue;
		this.mobileValue = mobileValue;
		this.emailValue = emailValue;
		this.dayOfBirthValue = dayOfBirthValue;
		this.mounthOfBirthValue = mounthOfBirthValue;
		this.yearOfBirthValue = yearOfBirthValue;
		this.groupValue = groupValue;
		this.secondaryAdressValue = secondaryAdressValue;
		this.myHomeValue = myHomeValue;
		this.workValue = workValue;
		this.secondEmailValue = secondEmailValue;
		this.secondaryHomeValue = secondaryHomeValue;
	}
	
	
	public ContactData() {}

	@Override
	public int hashCode() {
		int result = 1;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ContactData other = (ContactData) obj;
		if (firstNameValue == null) {
			if (other.firstNameValue != null)
				return false;
		} else if (!firstNameValue.equals(other.firstNameValue))
			return false;
		return true;
	}
	
	@Override
	public String toString() {
		return "ContactData [firstNameValue=" + firstNameValue + "]";
	}


	@Override
	public int compareTo(ContactData other) {
		return this.firstNameValue.toLowerCase().compareTo(other.firstNameValue.toLowerCase());
	}
	
	
	public ContactData withFirstNameValue(String firstNameValue) {
		this.firstNameValue = firstNameValue;
		return this;
	}


	public ContactData withLastNameParameter(String lastNameParameter) {
		this.lastNameParameter = lastNameParameter;
		return this;
	}


	public ContactData withAdressValue(String adressValue) {
		this.adressValue = adressValue;
		return this;
	}


	public ContactData withMobileValue(String mobileValue) {
		this.mobileValue = mobileValue;
		return this;
	}


	public ContactData withEmailValue(String emailValue) {
		this.emailValue = emailValue;
		return this;
	}


	public ContactData withYearOfBirthValue(String yearOfBirthValue) {
		this.yearOfBirthValue = yearOfBirthValue;
		return this;
	}


	public ContactData withMounthOfBirthValue(String mounthOfBirthValue) {
		this.mounthOfBirthValue = mounthOfBirthValue;
		return this;
	}


	public ContactData withDayOfBirthValue(String dayOfBirthValue) {
		this.dayOfBirthValue = dayOfBirthValue;
		return this;
	}


	public ContactData withGroupValue(String groupValue) {
		this.groupValue = groupValue;
		return this;
	}


	public ContactData withSecondaryAdressValue(String secondaryAdressValue) {
		this.secondaryAdressValue = secondaryAdressValue;
		return this;
	}


	public ContactData withMyHomeValue(String myHomeValue) {
		this.myHomeValue = myHomeValue;
		return this;
	}


	public ContactData withWorkValue(String workValue) {
		this.workValue = workValue;
		return this;
	}


	public ContactData withSecondEmailValue(String secondEmailValue) {
		this.secondEmailValue = secondEmailValue;
		return this;
	}


	public ContactData withSecondaryHomeValue(String secondaryHomeValue) {
		this.secondaryHomeValue = secondaryHomeValue;
		return this;
	}


	public String getFirstNameValue() {
		return firstNameValue;
	}


	public String getLastNameParameter() {
		return lastNameParameter;
	}


	public String getAdressValue() {
		return adressValue;
	}


	public String getMobileValue() {
		return mobileValue;
	}


	public String getEmailValue() {
		return emailValue;
	}


	public String getDayOfBirthValue() {
		return dayOfBirthValue;
	}


	public String getMounthOfBirthValue() {
		return mounthOfBirthValue;
	}


	public String getYearOfBirthValue() {
		return yearOfBirthValue;
	}


	public String getGroupValue() {
		return groupValue;
	}


	public String getSecondaryAdressValue() {
		return secondaryAdressValue;
	}


	public String getMyHomeValue() {
		return myHomeValue;
	}


	public String getWorkValue() {
		return workValue;
	}


	public String getSecondEmailValue() {
		return secondEmailValue;
	}


	public String getSecondaryHomeValue() {
		return secondaryHomeValue;
	}

	

	
}